package cn.lyw.service.service;

import cn.common.restresult.util.RestResult;
import cn.lyw.service.bo.SmallMiSeckillGoods;
import cn.lyw.service.bo.UserSeckillBO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author   lyw
 * @Description 秒杀场次
 * @Date 12:14 2021/7/23
 * @Param
 * @return
 */
@FeignClient(value = "seckill-provider-server")
@Component
public interface SeckillSessionService {

    /**
     * @Author   lyw
     * @Description 秒杀
     * @Date 17:49 2021/7/26
     * @Param
     * @return
     */
    @PostMapping("/seckillSession/seckill")
    RestResult<SmallMiSeckillGoods> seckill(@RequestBody UserSeckillBO bo);

}
